<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'empmove-det.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <form id="form-admin-add" action="empmove/apply-newdept/${emo.mo_id}.action" method="post">
   <input type="hidden" value="${emo.mo_id}" name="emo_id">
    <div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">申请原因：</label>
		 ${emo.mo_reason}
		</div>
      调度表类型： <input type="text" readonly="readonly" value="${emo.mo_type}" name="emo_type"><br>
	</div>
	审核结果：<input type="radio" value="通过" name="res_result">通过
	        <input type="radio" value="打回" name="res_result">打回
	        <input type="radio" value="拒绝" name="res_result">拒绝
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">审核意见：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea name="res_comm" cols="100" rows="8" class="textarea" placeholder="说点什么...100个字符以内" dragonfly="true" onKeyUp="$.Huitextarealength(this,100)"></textarea>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>	
	</form>
    <!--_footer 作为公共模版分离出去--> 
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
	<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script> 
	<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
	
	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
	<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script> 
	<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script> 
	<script type="text/javascript">
	$(function(){
	    $("#form-admin-add").validate({
		
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "empmove/apply-newdept/"+${emo.mo_id}+".action" ,
				success: function(data){
					layer.msg('添加成功!',{icon:1,time:1000});
				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					layer.msg('error!',{icon:1,time:1000});
				}
			});
			var index = parent.layer.getFrameIndex(window.name);
			window.parent.location.reload();//刷新父页面
			parent.layer.close(index);
		}
	});
	})
	 
	
	</script>
  </body>
</html>
